package cz.idsv.web.mvc.model.service;

import java.util.Collection;

import org.springframework.dao.DataAccessException;

import cz.idsv.web.mvc.model.entity.AddressEntity;



/**
 * Address Service interface.
 * 
 * @author Jan Borzensky
 */
public interface AddressService {

    /**
     * Find Address.
     */
    public Collection<AddressEntity> findAddress() throws DataAccessException;
    
    /**
     * Saves address.
     */
    public void save(AddressEntity addressEntity);
    
    
    /**
     * Delete address.
     */
    public void delete(AddressEntity addressEntity);
    
    /**
     * Find document by id.
     */
    public AddressEntity findAddressById(Integer id) throws DataAccessException;
    /**
     * Find document by city.
     */
    public Collection<AddressEntity> findAddressByCity(String city) throws DataAccessException;
    /**
     * Find document by street.
     */
    public Collection<AddressEntity> findAddressByStreet(String street) throws DataAccessException;
    /**
     * Find document by streatNumber.
     */
    public Collection<AddressEntity> findAddressByStreetNumber(Integer streetNumber) throws DataAccessException;
    /**
     * Find document by postNumber.
     */
    public Collection<AddressEntity> findAddressByPostNumber(Integer postNumber) throws DataAccessException;
}

